﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ITMAN.Login_FRMs
{
    public partial class FRM_appmenu : Form
    {
        public FRM_appmenu()
        {
            InitializeComponent();
        }

        private void FRM_appmenu_FormClosed(object sender, FormClosedEventArgs e)
        {
            Application.Exit();
        }

        private void notify_app_MouseClick(object sender, MouseEventArgs e)
        {
            this.Show();
            this.WindowState = FormWindowState.Normal;
        }

        private void FRM_appmenu_Resize(object sender, EventArgs e)
        {
            if (FormWindowState.Minimized == this.WindowState)
            {
                notify_app.Visible = true;
                this.Hide();
            }
            else if (FormWindowState.Normal == this.WindowState)
            {
                notify_app.Visible = false;
            }
        }

        private void BTN_assetmanager_Click(object sender, EventArgs e)
        {
            AssetMan_FRMs.FRM_assetman_start assetman = new AssetMan_FRMs.FRM_assetman_start();
            assetman.Show();
        }

        private void FRM_appmenu_Load(object sender, EventArgs e)
        {
            LBL_username.Text = Klassen.LoginInformations.username;
        }
    }
}
